This directory contains replication materials for


"`Why Do You Ask?' The Nature and Impacts of Attitudes towards Public Opinion Surveys in the Arab World"
by Justin Gengler, Mark Tessler, Russell Lucas, and Jonathan Forney


It contains 6 files:

1. Codebook of questions used in the analysis (English; Arabic can be provided upon request)

   Filename: "Survey Attitudes in the Arab World - Questionnaire (English).pdf"

2. Anonymized survey data from Qatar (Stata v.14)

   Filename: "attitudes-replication-anon.dta"

3. Replication code for everything *except the conjoint* analysis (Stata v.14)

   Filename: "attitudes-replication-code.do"

4. Replication code for the conjoint analysis (Stata v.14)

   Filename: "attitudes-replication-code-conjoint.do"

5. Replication code for the conjoint analysis and Figure 1 (R v.3.5.1)

   Filename: "conjoint R replication code.txt"

6. Anonymized Qatar data set *for R replication* (Stata v.12)

   Filename: "attitudes-replication-conjoint-for-R.dta"


A couple of important notes:

- Analysis of the conjoint experiment requires reshaping the data to account for the three rounds of 
  the experiment.  This means that, if the conjoint replication code is run (#4), then the data can
  no longer be used for other analyses, as each respondent will have 3 observations for all indicators.  
  To analyize the non-conjoint results after running the conjoint code (#4), the dataset should be 
  closed without saving changes and then the proper code (#3) run.

- The R replication files are included mainly to reproduce the conjoint results of Figure 1.  The package 
  ('foreign') used to import the data from Stata requires that the data be in Stata v.12.  Other packages 
  can import more recent versions, but I haven't bothered to install them.  So, if you make changes to the 
  Stata dataset that is meant for replication in R (#6), then make sure that you preserve the existing 
  v.12 format (using 'saveold'); otherwise, it will not import to R.  And if R kicks an error while trying
  to import, first check that the data (#6) are still saved in v.12.




  

  